import request from "../utils/request.js";

// 系统消息
// 消息查询
export function getMessage(data = {}) {
  return request({
    url: "/message",
    method: "get",
    data,
  });
}
// 平台用户获取未读的消息
export function platUserUnread(data = {}) {
  return request({
    url: "/message/platUserUnread",
    method: "get",
    data,
  });
}
// 未读消息数量
export function unReadCount(data = {}) {
  return request({
    url: "/message/unReadCount",
    method: "get",
    data,
  });
}
// 读取信息
export function readMessage(id) {
  return request({
    url: `/message/readMessage/${id}`,
    method: "get",
  });
}
